<template>
    <view>
		<fui-sticky>
			<!-- #ifdef H5 -->
			<fui-nav-bar title="隐私协议" @leftClick="leftClick">
				<fui-icon name="arrowleft"></fui-icon>
			</fui-nav-bar>
			<!-- #endif -->
			
		</fui-sticky>
		<view style="background-color: #fff;padding:0 32rpx;">
			<rich-text class="htmlContent" :nodes="htmlContent"></rich-text>
		</view>
    </view>
</template>

<script setup>
	const getSystem = uniCloud.importObject('admin-system',{customUI: true})
    import { ref, reactive } from 'vue'
    import { onLoad } from "@dcloudio/uni-app";
	
	const htmlContent = ref("")
	onLoad(async()=>{
		const res = await getSystem.getAgreement({classify:'隐私协议'})
		htmlContent.value = res.data[0].htmlContent
	})
	
	// #ifdef H5
	const leftClick = ()=>{
		uni.navigateBack()
	}
	// #endif
	
</script>

<style lang="scss" scoped>
	.htmlContent{
		padding: 20rpx;
	}
</style>
